XMLElement xml;
String url;
String[] t_post;
String[] t_tag;
String[][] t_TEST = new String[2][5];


void setup() {
  size(3, 3);
   
    xml = new XMLElement(this, "../tag.xml"); // appel du fichier XML
    int v_nbrPost = xml.getChildCount(); 
    t_post  =  new String[v_nbrPost];
    
    for (int i = 0; i < v_nbrPost; i++) {
      XMLElement v_post = xml.getChild(i); // Initialise un objet kidxml qui correspond au i-eme enfant du noeud XML 
      t_post[i] = v_post.getStringAttribute("tag");
    }
    t_tag = split(t_post[0]," ");
    t_TEST[0][0] = t_tag[0];
    t_TEST[0][1] = t_tag[1];
    t_TEST[0][2] = t_tag[2];
    
    t_tag = split(t_post[1]," ");
    t_TEST[1][0] = t_tag[0];
    t_TEST[1][1] = t_tag[1];
    t_TEST[1][2] = t_tag[2];
    
    println(t_post);
    println("_________________");
    println(t_tag);
    println("=================");
    println(t_TEST[0]);
    println("_________________");
    println(t_TEST[1]);
}


